package com.fowo.api.model.nav.logistics.mapping;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ContentStyle;
import com.alibaba.excel.enums.poi.HorizontalAlignmentEnum;
import javax.validation.constraints.*;
import lombok.Getter;
import lombok.Setter;

/** 物流管理-省州映射关系 导入导出辅助模型 */
@Getter
@Setter
public class NavLogisticsMappingExcelPo {

  @NotNull(message = "国家不能为空")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "*国家")
  private String countryCountry;

  @ExcelIgnore
  @ExcelProperty(value = "*国家")
  private Long country;

  @Size(max = 50, message = "汉语名长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "汉语名")
  private String provinceCHNName;

  @NotBlank(message = "全称不能为空")
  @Size(max = 50, message = "全称长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "*全称")
  private String provinceFullName;

  @NotBlank(message = "简称不能为空")
  @Size(max = 50, message = "简称长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "*简称")
  private String provinceSimpleName;
}
